﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PackageLimit.aspx.cs" Inherits="famails.BackEnd.page.PackageLimit" MasterPageFile="~/Master.Master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<style>
#ContentPlaceHolder1_ceUnLimit {
        height:20px;
        width:20px;
        margin-right:0px;
        margin-top:6px;
    }
#ContentPlaceHolder1_ceIsActive {
        height:20px;
        width:20px;
        margin-right:0px;
        margin-top:6px;
    }

</style>
<div style="width:100%;padding:10px;">

    <div class="col-md-12 col-xs-12 col-sm-12 col-lg-12" style="border:1px solid #333;padding:0px;margin-bottom:10px;">
        <div class="col-md-12 col-xs-12 col-sm-12 col-lg-12" style="padding:10px 20px;background:#000;color:#fff;font-size:18px;font-weight:bold;position:relative;">   
            Thông tin gói thời gian
        </div>
        <div class="col-md-12 col-xs-12 col-sm-12 col-lg-12" style="height: auto;padding:10px;">
                <asp:Panel Visible="false" ID="pnError" runat="server">
                    <div class="error-box round">
                        <asp:Label ID="lblError" runat="server" Text=""></asp:Label>
                    </div>
                </asp:Panel>
                <asp:Panel Visible="false" ID="pnSuccess" runat="server">
                    <div class="confirmation-box round">
                        <asp:Label ID="lblSuccess" runat="server" Text=""></asp:Label>
                    </div>
                </asp:Panel>
        </div>
        <div class="col-md-4 col-xs-6 col-sm-4 col-lg-4" style="height: auto;padding:10px;">
            <asp:HiddenField ID="hdfId" runat="server" />
            <fieldset>
                <p>
                    <label for="simple-input" style="font-weight: bolder; text-transform: none">
                        Tên gói</label>
                    <asp:TextBox ID="txtnamepackagelimit" CssClass="form-control" style="border:1px solid #333;border-radius:0px;" 
                    runat="server"></asp:TextBox>
                </p>
            </fieldset>
        </div>
        <div class="col-md-4 col-xs-6 col-sm-4 col-lg-4" style="height: auto;padding:10px;">
            <fieldset>
                <p>
                    <label for="simple-input" style="font-weight: bolder; text-transform: none">
                        Số Email gửi</label>
                    <asp:TextBox ID="txtunder" CssClass="form-control" style="border:1px solid #333;border-radius:0px;" 
                    runat="server"></asp:TextBox>
                </p>
            </fieldset>
        </div>
        <div class="col-md-4 col-xs-6 col-sm-4 col-lg-4" style="height: auto;padding:10px;">
            <fieldset>
                <p>
                    <label for="simple-input" style="font-weight: bolder; text-transform: none">
                        Giá</label>
                    <asp:TextBox ID="txtcode" CssClass="form-control" style="border:1px solid #333;border-radius:0px;" 
                    runat="server"></asp:TextBox>
                </p>
            </fieldset>
        </div>
        <div class="col-md-4 col-xs-6 col-sm-4 col-lg-4" style="height: auto;padding:10px;">
            <fieldset>
                <p>
                    <label for="simple-input" style="font-weight: bolder;padding-top: 7px;
margin-right: 10px; float:left; text-transform: none">
                        Không giới hạn</label>
                    <asp:CheckBox ID="ceUnLimit" style="float:left;" runat="server"/>
                </p>
            </fieldset>
        </div>
        <div class="col-md-4 col-xs-6 col-sm-4 col-lg-4" style="height: auto;padding:10px;">
            <fieldset>
                <p>
                    <label for="simple-input" style="font-weight: bolder;padding-top: 7px;
margin-right: 10px; float:left;text-transform: none">
                        Kích hoạt</label>
                    <asp:CheckBox ID="ceIsActive"  style="float:left;" runat="server"/>
                </p>
            </fieldset>
        </div>
        <div class="col-md-4 col-xs-6 col-sm-4 col-lg-4" style="height: auto;padding:10px;">
            <fieldset>
                <p>
                        <button runat="server" class="btn" style="float:left;margin-right:10px;background:#333;color:#fff;text-align:center;padding:6px 15px;border-radius:0px;" 
                            onserverclick="btnSave_Click">
                            <i style="margin-right:10px;" class="fa fa-save"></i> Lưu
                        </button>
                </p>
            </fieldset>
        </div>
    </div>

        <div class="col-md-12 col-xs-12 col-sm-12 col-lg-12" style="border:1px solid #333;padding:0px;margin-bottom:10px;">
            <div class="col-md-12 col-xs-12 col-sm-12 col-lg-12" style="padding:10px 20px;background:#000;color:#fff;font-size:18px;font-weight:bold;position:relative;">   
               Danh sách giới hạn Mail
            </div>
            <div class="col-md-12 col-xs-12 col-sm-12 col-lg-12" style="height: auto;padding:10px;">
                <fieldset>
                    <div class=" table-responsive">
                    <table class="table table-striped table-bordered table-hover" id="dataTables-example">
                        <thead>
                            <tr>
                                <th>Tên giới hạn gửi Mail</th>
                                <th>Số lượng</th>
                                <th>Giá</th>
                                <th style="width:100px;">Tùy chỉnh</th>
                            </tr>
                        </thead>
                        <tbody>
                    <asp:Repeater ID="dtfunction" runat="server">
                         <ItemTemplate>
                            <tr>
                                <td>
                                    <asp:Label ID="lblAttr" runat="server" Text='<%# Eval("namepackagelimit") %>'></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblunder" runat="server" Text='<%# Eval("under") %>'></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblcost" runat="server" Text='<%# Eval("cost") %>'></asp:Label>
                                </td>
                                <td style="text-align:center;">
                                    <asp:ImageButton ID="btnEdit" runat="server" ImageUrl="../resource/images/edit-validated-icon.png"
                                        CommandArgument='<%# Eval("limitId") %>' OnClick="btnEdit_Click" />
                                    <asp:ImageButton ID="btnDelete" runat="server" ImageUrl="../resource/images/Delete-icon.png"
                                        CommandArgument='<%# Eval("limitId") %>'
                                        OnClientClick="return confirmDelete('Bạn có chắc rằng sẽ xóa thuộc tính này không ?')" OnClick="btnDelete_Click" />
                                </td>
                            </tr>     
                         </ItemTemplate>
                     </asp:Repeater>
                        </tbody>
                    </table>
                    </div>
                </fieldset>
            </div>
        </div>
</div>
<script>
    $(document).ready(function () {
        $('#dataTables-example').dataTable();
    });
</script>
</asp:Content>

